const { promisify } = require('util')
const download = promisify(require('download-git-repo'))
const ora = require('ora')//进度条

//repo 克隆地址  //desc 克隆到什么地方
module.exports = async function clone(repo, desc) {
	const process = ora(`Cloning into ...${repo}`) //定义一个进度条
	process.start()//启动进度条
	await download(repo, desc)
	process.succeed()
}